package com.tywj.panda.customer.common.route

import com.tywj.lib.route.RouteNavigation


/**
 * @desc 通用组件Native路由
 * @author June Yang
 * @date 2020/5/8
 */
object CommonRoute {

    // 主界面
    const val MAIN = "/main/main"

    const val MAIN_CUSTOMER = "/main/customer"

    const val MAIN_DRIVER = "/main/driver"

    /**
     * 跳转至主界面
     */
    @Deprecated("已弃用")
    fun toMain(): RouteNavigation {
        return RouteNavigation(MAIN)
    }

    /**
     * 跳转至用户主界面
     */
    fun toMainDriver(): RouteNavigation {
        return RouteNavigation(MAIN_DRIVER)
    }


    /**
     * 跳转至司机主界面
     */
    fun toMainCustomer(): RouteNavigation {
        return RouteNavigation(MAIN_CUSTOMER)
    }

}